home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / uemacs-3.000 / uemacs-3 / uemacs-3.8 / efunc.h,v < prev    next >
Encoding:
Text File  |  1995-09-22  |  14.5 KB  |  409 lines

  1. head    1.1;
  2. access;
  3. symbols;
  4. locks
  5.     moss:1.1; strict;
  6. comment    @ * @;
  7.  
  8.  
  9. 1.1
  10. date    95.09.22.22.47.11;    author moss;    state Exp;
  11. branches;
  12. next    ;
  13.  
  14.  
  15. desc
  16. @@
  17.  
  18.  
  19. 1.1
  20. log
  21. @Initial revision
  22. @
  23. text
  24. @/*    EFUNC.H:    MicroEMACS function declarations and names
  25.  
  26.         This file list all the C code functions used by MicroEMACS
  27.     and the names to use to bind keys to them. To add functions,
  28.     declare it here in both the extern function list and the name
  29.     binding table.
  30.  
  31. */
  32.  
  33. /*    External function declarations        */
  34.  
  35. extern  int     ctrlg();                /* Abort out of things          */
  36. extern  int     quit();                 /* Quit                         */
  37. extern  int     ctlxlp();               /* Begin macro                  */
  38. extern  int     ctlxrp();               /* End macro                    */
  39. extern  int     ctlxe();                /* Execute macro                */
  40. extern  int     fileread();             /* Get a file, read only        */
  41. extern  int     filefind();        /* Get a file, read write       */
  42. extern  int     filewrite();            /* Write a file                 */
  43. extern  int     filesave();             /* Save current file            */
  44. extern  int     filename();             /* Adjust file name             */
  45. extern  int     getccol();              /* Get current column           */
  46. extern  int     gotobol();              /* Move to start of line        */
  47. extern  int     forwchar();             /* Move forward by characters   */
  48. extern  int     gotoeol();              /* Move to end of line          */
  49. extern  int     backchar();             /* Move backward by characters  */
  50. extern  int     forwline();             /* Move forward by lines        */
  51. extern  int     backline();             /* Move backward by lines       */
  52. extern  int     forwpage();             /* Move forward by pages        */
  53. extern  int     backpage();             /* Move backward by pages       */
  54. extern  int     gotobob();              /* Move to start of buffer      */
  55. extern  int     gotoeob();              /* Move to end of buffer        */
  56. extern  int     setfillcol();           /* Set fill column.             */
  57. extern  int     setmark();              /* Set mark                     */
  58. extern  int     swapmark();             /* Swap "." and mark            */
  59. extern  int     forwsearch();           /* Search forward               */
  60. extern  int     backsearch();           /* Search backwards             */
  61. extern    int    sreplace();        /* search and replace        */
  62. extern    int    qreplace();        /* search and replace w/query    */
  63. extern  int     showcpos();             /* Show the cursor position     */
  64. extern  int     nextwind();             /* Move to the next window      */
  65. extern  int     prevwind();             /* Move to the previous window  */
  66. extern  int     onlywind();             /* Make current window only one */
  67. extern  int     splitwind();            /* Split current window         */
  68. extern  int     mvdnwind();             /* Move window down             */
  69. extern  int     mvupwind();             /* Move window up               */
  70. extern  int     enlargewind();          /* Enlarge display window.      */
  71. extern  int     shrinkwind();           /* Shrink window.               */
  72. extern  int     listbuffers();          /* Display list of buffers      */
  73. extern  int     usebuffer();            /* Switch a window to a buffer  */
  74. extern  int     killbuffer();           /* Make a buffer go away.       */
  75. extern  int     reposition();           /* Reposition window            */
  76. extern  int     refresh();              /* Refresh the screen           */
  77. extern  int     twiddle();              /* Twiddle characters           */
  78. extern  int     tab();                  /* Insert tab                   */
  79. extern  int     newline();              /* Insert CR-LF                 */
  80. extern  int     indent();               /* Insert CR-LF, then indent    */
  81. extern  int     openline();             /* Open up a blank line         */
  82. extern  int     deblank();              /* Delete blank lines           */
  83. extern  int     quote();                /* Insert literal               */
  84. extern  int     backword();             /* Backup by words              */
  85. extern  int     forwword();             /* Advance by words             */
  86. extern  int     forwdel();              /* Forward delete               */
  87. extern  int     backdel();              /* Backward delete              */
  88. extern  int     killtext();             /* Kill forward                 */
  89. extern  int     yank();                 /* Yank back from killbuffer.   */
  90. extern  int     upperword();            /* Upper case word.             */
  91. extern  int     lowerword();            /* Lower case word.             */
  92. extern  int     upperregion();          /* Upper case region.           */
  93. extern  int     lowerregion();          /* Lower case region.           */
  94. extern  int     capword();              /* Initial capitalize word.     */
  95. extern  int     delfword();             /* Delete forward word.         */
  96. extern  int     delbword();             /* Delete backward word.        */
  97. extern  int     killregion();           /* Kill region.                 */
  98. extern  int     copyregion();           /* Copy region to kill buffer.  */
  99. extern  int     spawncli();             /* Run CLI in a subjob.         */
  100. extern  int     spawn();                /* Run a command in a subjob.   */
  101. #if    BSD
  102. extern    int    bktoshell();        /* suspend emacs to parent shell*/
  103. extern    int    rtfrmshell();        /* return from a suspended state*/
  104. #endif
  105. extern  int     quickexit();            /* low keystroke style exit.    */
  106. extern    int    setmode();        /* set an editor mode        */
  107. extern    int    delmode();        /* delete a mode        */
  108. extern    int    gotoline();        /* go to a numbered line    */
  109. extern    int    namebuffer();        /* rename the current buffer    */
  110. #if    WORDPRO
  111. extern    int    gotobop();        /* go to beginning/paragraph    */
  112. extern    int    gotoeop();        /* go to end/paragraph        */
  113. extern    int    fillpara();        /* fill current paragraph    */
  114. #endif
  115. extern    int    help();            /* get the help file here    */
  116. extern    int    deskey();        /* describe a key's binding    */
  117. extern    int    viewfile();        /* find a file in view mode    */
  118. extern    int    insfile();        /* insert a file        */
  119. extern    int    scrnextup();        /* scroll next window back    */
  120. extern    int    scrnextdw();        /* scroll next window down    */
  121. extern    int    bindtokey();        /* bind a function to a key    */
  122. extern    int    unbindkey();        /* unbind a key's function    */
  123. extern    int    namedcmd();        /* execute named command    */
  124. extern    int    desbind();        /* describe bindings        */
  125. extern    int    execcmd();        /* execute a command line    */
  126. extern    int    execbuf();        /* exec commands from a buffer    */
  127. extern    int    execfile();        /* exec commands from a file    */
  128. extern    int    nextbuffer();        /* switch to the next buffer    */
  129. #if    WORDPRO
  130. extern    int    killpara();        /* kill the current paragraph    */
  131. #endif
  132. extern    int    setgmode();        /* set a global mode        */
  133. extern    int    delgmode();        /* delete a global mode        */
  134. extern    int    insspace();        /* insert a space forword    */
  135. extern    int    forwhunt();        /* hunt forward for next match    */
  136. extern    int    backhunt();        /* hunt backwards for next match*/
  137. extern    int    pipe();            /* pipe command into buffer    */
  138. extern    int    filter();        /* filter buffer through dos    */
  139. extern    int    delwind();        /* delete the current window    */
  140. extern    int    cbuf1();        /* execute numbered comd buffer */
  141. extern    int    cbuf2();
  142. extern    int    cbuf3();
  143. extern    int    cbuf4();
  144. extern    int    cbuf5();
  145. extern    int    cbuf6();
  146. extern    int    cbuf7();
  147. extern    int    cbuf8();
  148. extern    int    cbuf9();
  149. extern    int    cbuf10();
  150. extern    int    cbuf11();
  151. extern    int    cbuf12();
  152. extern    int    cbuf13();
  153. extern    int    cbuf14();
  154. extern    int    cbuf15();
  155. extern    int    cbuf16();
  156. extern    int    cbuf17();
  157. extern    int    cbuf18();
  158. extern    int    cbuf19();
  159. extern    int    cbuf20();
  160. extern    int    cbuf21();
  161. extern    int    cbuf22();
  162. extern    int    cbuf23();
  163. extern    int    cbuf24();
  164. extern    int    cbuf25();
  165. extern    int    cbuf26();
  166. extern    int    cbuf27();
  167. extern    int    cbuf28();
  168. extern    int    cbuf29();
  169. extern    int    cbuf30();
  170. extern    int    cbuf31();
  171. extern    int    cbuf32();
  172. extern    int    cbuf33();
  173. extern    int    cbuf34();
  174. extern    int    cbuf35();
  175. extern    int    cbuf36();
  176. extern    int    cbuf37();
  177. extern    int    cbuf38();
  178. extern    int    cbuf39();
  179. extern    int    cbuf40();
  180. extern    int    storemac();        /* store text for macro        */
  181. extern    int    resize();        /* resize current window    */
  182. extern    int    clrmes();        /* clear the message line    */
  183. extern    int    meta();            /* meta prefix dummy function    */
  184. extern    int    cex();            /* ^X prefix dummy function    */
  185. extern    int    unarg();        /* ^U repeat arg dummy function    */
  186. extern    int    istring();        /* insert string in text    */
  187. extern    int    unmark();        /* unmark current buffer    */
  188. #if    ISRCH
  189. extern    int    fisearch();        /* forward incremental search    */
  190. extern    int    risearch();        /* reverse incremental search    */
  191. #endif
  192. #if    WORDPRO
  193. extern    int    wordcount();        /* count words in region    */
  194. #endif
  195. extern    int    savewnd();        /* save current window        */
  196. extern    int    restwnd();        /* restore current window    */
  197. extern    int    upscreen();        /* force screen update        */
  198. extern    int    writemsg();        /* write text on message line    */
  199. #if    FLABEL
  200. extern    int    fnclabel();        /* set function key label    */
  201. #endif
  202. #if    APROP
  203. extern    int    apro();            /* apropos fuction        */
  204. #endif
  205. #if    CRYPT
  206. extern    int    setkey();        /* set encryption key        */
  207. #endif
  208. extern    int    wrapword();        /* wordwrap function        */
  209. #if    CFENCE
  210. extern    int    getfence();        /* move cursor to a matching fence */
  211. #endif
  212. extern    int    newsize();        /* change the current screen size */
  213. extern    int    setvar();        /* set a variables value */
  214. extern    int    newwidth();        /* change the current screen width */
  215.  
  216. /*    Name to function binding table
  217.  
  218.         This table gives the names of all the bindable functions
  219.     end their C function address. These are used for the bind-to-key
  220.     function.
  221. */
  222.  
  223. NBIND    names[] = {
  224.     {"abort-command",        ctrlg},
  225.     {"add-mode",            setmode},
  226.     {"add-global-mode",        setgmode},
  227. #if    APROP
  228.     {"apropos",            apro},
  229. #endif
  230.     {"backward-character",        backchar},
  231.     {"begin-macro",            ctlxlp},
  232.     {"beginning-of-file",        gotobob},
  233.     {"beginning-of-line",        gotobol},
  234.     {"bind-to-key",            bindtokey},
  235.     {"buffer-position",        showcpos},
  236.     {"case-region-lower",        lowerregion},
  237.     {"case-region-upper",        upperregion},
  238.     {"case-word-capitalize",    capword},
  239.     {"case-word-lower",        lowerword},
  240.     {"case-word-upper",        upperword},
  241.     {"change-file-name",        filename},
  242.     {"change-screen-size",        newsize},
  243.     {"change-screen-width",        newwidth},
  244.     {"clear-and-redraw",        refresh},
  245.     {"clear-message-line",        clrmes},
  246.     {"copy-region",            copyregion},
  247. #if    WORDPRO
  248.     {"count-words",            wordcount},
  249. #endif
  250.     {"ctlx-prefix",            cex},
  251.     {"delete-blank-lines",        deblank},
  252.     {"delete-buffer",        killbuffer},
  253.     {"delete-mode",            delmode},
  254.     {"delete-global-mode",        delgmode},
  255.     {"delete-next-character",    forwdel},
  256.     {"delete-next-word",        delfword},
  257.     {"delete-other-windows",    onlywind},
  258.     {"delete-previous-character",    backdel},
  259.     {"delete-previous-word",    delbword},
  260.     {"delete-window",        delwind},
  261.     {"describe-bindings",        desbind},
  262.     {"describe-key",        deskey},
  263.     {"end-macro",            ctlxrp},
  264.     {"end-of-file",            gotoeob},
  265.     {"end-of-line",            gotoeol},
  266.     {"exchange-point-and-mark",    swapmark},
  267.     {"execute-buffer",        execbuf},
  268.     {"execute-command-line",    execcmd},
  269.     {"execute-file",        execfile},
  270.     {"execute-macro",        ctlxe},
  271.     {"execute-macro-1",        cbuf1},
  272.     {"execute-macro-2",        cbuf2},
  273.     {"execute-macro-3",        cbuf3},
  274.     {"execute-macro-4",        cbuf4},
  275.     {"execute-macro-5",        cbuf5},
  276.     {"execute-macro-6",        cbuf6},
  277.     {"execute-macro-7",        cbuf7},
  278.     {"execute-macro-8",        cbuf8},
  279.     {"execute-macro-9",        cbuf9},
  280.     {"execute-macro-10",        cbuf10},
  281.     {"execute-macro-11",        cbuf11},
  282.     {"execute-macro-12",        cbuf12},
  283.     {"execute-macro-13",        cbuf13},
  284.     {"execute-macro-14",        cbuf14},
  285.     {"execute-macro-15",        cbuf15},
  286.     {"execute-macro-16",        cbuf16},
  287.     {"execute-macro-17",        cbuf17},
  288.     {"execute-macro-18",        cbuf18},
  289.     {"execute-macro-19",        cbuf19},
  290.     {"execute-macro-20",        cbuf20},
  291.     {"execute-macro-21",        cbuf21},
  292.     {"execute-macro-22",        cbuf22},
  293.     {"execute-macro-23",        cbuf23},
  294.     {"execute-macro-24",        cbuf24},
  295.     {"execute-macro-25",        cbuf25},
  296.     {"execute-macro-26",        cbuf26},
  297.     {"execute-macro-27",        cbuf27},
  298.     {"execute-macro-28",        cbuf28},
  299.     {"execute-macro-29",        cbuf29},
  300.     {"execute-macro-30",        cbuf30},
  301.     {"execute-macro-31",        cbuf31},
  302.     {"execute-macro-32",        cbuf32},
  303.     {"execute-macro-33",        cbuf33},
  304.     {"execute-macro-34",        cbuf34},
  305.     {"execute-macro-35",        cbuf35},
  306.     {"execute-macro-36",        cbuf36},
  307.     {"execute-macro-37",        cbuf37},
  308.     {"execute-macro-38",        cbuf38},
  309.     {"execute-macro-39",        cbuf39},
  310.     {"execute-macro-40",        cbuf40},
  311.     {"execute-named-command",    namedcmd},
  312.     {"exit-emacs",            quit},
  313. #if    WORDPRO
  314.     {"fill-paragraph",        fillpara},
  315. #endif
  316.     {"filter-buffer",        filter},
  317.     {"find-file",            filefind},
  318.     {"forward-character",        forwchar},
  319.     {"goto-line",            gotoline},
  320. #if    CFENCE
  321.     {"goto-matching-fence",        getfence},
  322. #endif
  323.     {"grow-window",            enlargewind},
  324.     {"handle-tab",            tab},
  325.     {"hunt-forward",        forwhunt},
  326.     {"hunt-backward",        backhunt},
  327.     {"help",            help},
  328.     {"i-shell",            spawncli},
  329. #if    ISRCH
  330.     {"incremental-search",        fisearch},
  331. #endif
  332.     {"insert-file",            insfile},
  333.     {"insert-space",        insspace},
  334.     {"insert-string",        istring},
  335. #if    WORDPRO
  336.     {"kill-paragraph",        killpara},
  337. #endif
  338.     {"kill-region",            killregion},
  339.     {"kill-to-end-of-line",        killtext},
  340. #if    FLABEL
  341.     {"label-function-key",        fnclabel},
  342. #endif
  343.     {"list-buffers",        listbuffers},
  344.     {"meta-prefix",            meta},
  345.     {"move-window-down",        mvdnwind},
  346.     {"move-window-up",        mvupwind},
  347.     {"name-buffer",            namebuffer},
  348.     {"newline",            newline},
  349.     {"newline-and-indent",        indent},
  350.     {"next-buffer",            nextbuffer},
  351.     {"next-line",            forwline},
  352.     {"next-page",            forwpage},
  353. #if    WORDPRO
  354.     {"next-paragraph",        gotoeop},
  355. #endif
  356.     {"next-window",            nextwind},
  357.     {"next-word",            forwword},
  358.     {"open-line",            openline},
  359.     {"pipe-command",        pipe},
  360.     {"previous-line",        backline},
  361.     {"previous-page",        backpage},
  362. #if    WORDPRO
  363.     {"previous-paragraph",        gotobop},
  364. #endif
  365.     {"previous-window",        prevwind},
  366.     {"previous-word",        backword},
  367.     {"query-replace-string",    qreplace},
  368.     {"quick-exit",            quickexit},
  369.     {"quote-character",        quote},
  370.     {"read-file",            fileread},
  371.     {"redraw-display",        reposition},
  372.     {"resize-window",        resize},
  373.     {"restore-window",        restwnd},
  374.     {"replace-string",        sreplace},
  375. #if    ISRCH
  376.     {"reverse-incremental-search",    risearch},
  377. #endif
  378.     {"save-file",            filesave},
  379.     {"save-window",            savewnd}X    {"search-forward",        forwsearch},
  380.     {"search-reverse",        backsearch},
  381.     {"select-buffer",        usebuffer},
  382.     {"set",                setvar},
  383. #if    CRYPT
  384.     {"set-encryption-key",        setkey},
  385. #endif
  386.     {"set-fill-column",        setfillcol},
  387.     {"set-mark",            setmark},
  388.     {"shell-command",        spawn},
  389.     {"shrink-window",        shrinkwind},
  390.     {"split-current-window",    splitwind},
  391.     {"store-macro",            storemac},
  392. #if    BSD
  393.     {"suspend-emacs",        bktoshell},
  394. #endif
  395.     {"transpose-characters",    twiddle},
  396.     {"unbind-key",            unbindkey},
  397.     {"universal-argument",        unarg},
  398.     {"unmark-buffer",        unmark},
  399.     {"update-screen",        upscreen},
  400.     {"view-file",            viewfile},
  401.     {"wrap-word",            wrapword},
  402.     {"write-file",            filewrite},
  403.     {"write-message",        writemsg},
  404.     {"yank",            yank},
  405.  
  406.     {"",            NULL}
  407. };
  408. @
  409.